package com.zhg.javakc.modules.group.tree.service;

import com.zhg.javakc.base.service.BaseService;
import com.zhg.javakc.modules.group.tree.dao.GroupDao;
import com.zhg.javakc.modules.group.tree.entity.GroupEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author an
 * @version v0.0.1
 * @date 2019/11/25 16:12
 */

@Service
public class GroupService extends BaseService<GroupDao,GroupEntity> {

    @Autowired
    GroupDao groupDao;

    public List<Map<String,Object>> queryAllOrg(){
        return groupDao.queryAllOrg();
    }

    public List<Map<String,Object>> queryByOrgId(String groupId){
        return groupDao.queryByOrgId(groupId);
    }

   public void deleteOrg(String groupId){
        groupDao.deleteOrg(groupId);
   }
}
